package com.jiazhong.service;

import com.jiazhong.dao.StuDao;
import com.jiazhong.entity.Stu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("Stuservice")
public class StuserviceImpl implements Stuservice {

    @Autowired
    private StuDao stuDao;

    @Override
    public List<Stu> query1() {
        return stuDao.query();
    }

    @Override
    public void delete1( Integer id) {
        stuDao.delete(id);
    }

    @Override
    public void insert1(Stu obj) {
        stuDao.insert(obj);
    }

    @Override
    public void update1(Stu obj) {
        stuDao.update(obj);
    }
}
